﻿namespace WMS6.Web.InboundDetailServiceRef
{
    using System;
    using System.CodeDom.Compiler;
    using System.ComponentModel;
    using System.Diagnostics;
    using System.Runtime.CompilerServices;
    using System.Runtime.Serialization;

    [Serializable, DataContract(Name="ReceiptLotInfo", Namespace="http://schemas.datacontract.org/2004/07/WMS6.DataEntity"), DebuggerStepThrough, GeneratedCode("System.Runtime.Serialization", "3.0.0.0")]
    public class ReceiptLotInfo : IExtensibleDataObject, INotifyPropertyChanged
    {
        [OptionalField]
        private DateTime ExpiryDateField;
        [NonSerialized]
        private ExtensionDataObject extensionDataField;
        [OptionalField]
        private string ExternalLotField;
        [OptionalField]
        private string LotAttr01Field;
        [OptionalField]
        private string LotAttr02Field;
        [OptionalField]
        private string LotAttr03Field;
        [OptionalField]
        private string LotAttr04Field;
        [OptionalField]
        private string LotAttr05Field;
        [OptionalField]
        private string LotAttr06Field;
        [OptionalField]
        private string LotAttr07Field;
        [OptionalField]
        private string LotAttr08Field;
        [OptionalField]
        private string LotAttr09Field;
        [OptionalField]
        private string LotAttr10Field;
        [OptionalField]
        private DateTime ProduceDateField;
        [OptionalField]
        private DateTime ReceiptDateField;
        [OptionalField]
        private string VendorIDField;

        public event PropertyChangedEventHandler PropertyChanged;

        protected void RaisePropertyChanged(string propertyName)
        {
            PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
            if (propertyChanged != null)
            {
                propertyChanged(this, new PropertyChangedEventArgs(propertyName));
            }
        }

        [DataMember]
        public DateTime ExpiryDate
        {
            get
            {
                return this.ExpiryDateField;
            }
            set
            {
                if (!this.ExpiryDateField.Equals(value))
                {
                    this.ExpiryDateField = value;
                    this.RaisePropertyChanged("ExpiryDate");
                }
            }
        }

        [Browsable(false)]
        public ExtensionDataObject ExtensionData
        {
            get
            {
                return this.extensionDataField;
            }
            set
            {
                this.extensionDataField = value;
            }
        }

        [DataMember]
        public string ExternalLot
        {
            get
            {
                return this.ExternalLotField;
            }
            set
            {
                if (!object.ReferenceEquals(this.ExternalLotField, value))
                {
                    this.ExternalLotField = value;
                    this.RaisePropertyChanged("ExternalLot");
                }
            }
        }

        [DataMember]
        public string LotAttr01
        {
            get
            {
                return this.LotAttr01Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr01Field, value))
                {
                    this.LotAttr01Field = value;
                    this.RaisePropertyChanged("LotAttr01");
                }
            }
        }

        [DataMember]
        public string LotAttr02
        {
            get
            {
                return this.LotAttr02Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr02Field, value))
                {
                    this.LotAttr02Field = value;
                    this.RaisePropertyChanged("LotAttr02");
                }
            }
        }

        [DataMember]
        public string LotAttr03
        {
            get
            {
                return this.LotAttr03Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr03Field, value))
                {
                    this.LotAttr03Field = value;
                    this.RaisePropertyChanged("LotAttr03");
                }
            }
        }

        [DataMember]
        public string LotAttr04
        {
            get
            {
                return this.LotAttr04Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr04Field, value))
                {
                    this.LotAttr04Field = value;
                    this.RaisePropertyChanged("LotAttr04");
                }
            }
        }

        [DataMember]
        public string LotAttr05
        {
            get
            {
                return this.LotAttr05Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr05Field, value))
                {
                    this.LotAttr05Field = value;
                    this.RaisePropertyChanged("LotAttr05");
                }
            }
        }

        [DataMember]
        public string LotAttr06
        {
            get
            {
                return this.LotAttr06Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr06Field, value))
                {
                    this.LotAttr06Field = value;
                    this.RaisePropertyChanged("LotAttr06");
                }
            }
        }

        [DataMember]
        public string LotAttr07
        {
            get
            {
                return this.LotAttr07Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr07Field, value))
                {
                    this.LotAttr07Field = value;
                    this.RaisePropertyChanged("LotAttr07");
                }
            }
        }

        [DataMember]
        public string LotAttr08
        {
            get
            {
                return this.LotAttr08Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr08Field, value))
                {
                    this.LotAttr08Field = value;
                    this.RaisePropertyChanged("LotAttr08");
                }
            }
        }

        [DataMember]
        public string LotAttr09
        {
            get
            {
                return this.LotAttr09Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr09Field, value))
                {
                    this.LotAttr09Field = value;
                    this.RaisePropertyChanged("LotAttr09");
                }
            }
        }

        [DataMember]
        public string LotAttr10
        {
            get
            {
                return this.LotAttr10Field;
            }
            set
            {
                if (!object.ReferenceEquals(this.LotAttr10Field, value))
                {
                    this.LotAttr10Field = value;
                    this.RaisePropertyChanged("LotAttr10");
                }
            }
        }

        [DataMember]
        public DateTime ProduceDate
        {
            get
            {
                return this.ProduceDateField;
            }
            set
            {
                if (!this.ProduceDateField.Equals(value))
                {
                    this.ProduceDateField = value;
                    this.RaisePropertyChanged("ProduceDate");
                }
            }
        }

        [DataMember]
        public DateTime ReceiptDate
        {
            get
            {
                return this.ReceiptDateField;
            }
            set
            {
                if (!this.ReceiptDateField.Equals(value))
                {
                    this.ReceiptDateField = value;
                    this.RaisePropertyChanged("ReceiptDate");
                }
            }
        }

        [DataMember]
        public string VendorID
        {
            get
            {
                return this.VendorIDField;
            }
            set
            {
                if (!object.ReferenceEquals(this.VendorIDField, value))
                {
                    this.VendorIDField = value;
                    this.RaisePropertyChanged("VendorID");
                }
            }
        }
    }
}

